#ifndef TRFOLLOWTRADER_H
#define TRFOLLOWTRADER_H

#include "include/TrGlobal.h"
#include "include/TrService.h"
#include "include/TrManager.h"

#ifdef Q_OS_WIN
#pragma comment(lib, "user32.lib")
#include <qt_windows.h>
#endif

class CTrFollowTrader : public CTrReceiver
{
public:
    CTrFollowTrader();
    virtual ~CTrFollowTrader();
    virtual void OnReceiveData(Tr_ResponseID rId, void* wParam, void* lParam) override;
    void    SendTradeMessage(CThostFtdcTradeField *pTrade);
    void    AddFollowID(QString UserID);
    void    OnTrade(CThostFtdcTradeField *pTrade);
    void    LoadXmlFollowConfig();
public:
    QString         m_SourceID;
    QStringList     m_TraderID;
    QString         m_InstrumentID;
    int             m_Lots;
    int             m_Offset;
};

#endif // TRFOLLOWTRADER_H
